// 文件位置: src/main/java/com/pharmacy/InventoryManage/service/InventoryService.java
package com.pharmacy.InventoryManage.service;

import com.pharmacy.InventoryManage.entity.Inventory;
import java.util.List;

public interface InventoryService {
    List<Inventory> getAllInventories();
    Inventory getInventoryById(Integer id);
    Inventory getInventoryByMedicineId(Integer medicineId);
    List<Inventory> getLowStockInventories();
    boolean addInventory(Inventory inventory);
    boolean updateInventory(Inventory inventory);
    boolean updateInventoryQuantity(Integer medicineId, Integer quantity);
    boolean deleteInventory(Integer medicineId);
    boolean checkStock(Integer medicineId, Integer requiredQuantity);
}